install-deps.py: add x86_64-unknown-linux-musl target
authorJorge Aparicio <japaricious@gmail.com>
Wed, 30 Mar 2016 00:38:13 +0000 (19:38 -0500)
committerJorge Aparicio <japaricious@gmail.com>
Wed, 30 Mar 2016 00:38:13 +0000 (19:38 -0500)
This lets me build a statically linked cargo on our linux-cross Docker image with the following
commands:

$ apt-get install musl-tools # for musl-gcc, which is needed to build openssl
$ ./.travis.install.deps.sh
$ ./configure --local-rust-root=$(pwd)/rustc --enable-nightly --target=x86_64-unknown-linux-musl
$ make
$ file target/x86_64-unknown-linux-musl/release/cargo
cargo: ELF 64-bit LSB executable, x86-64, version 1 (GNU/Linux), statically linked (..)

src/etc/install-deps.py

index 68bfd0894371a7571556aecbb3ad6e11f2ec1255..9d453345e15c801237d3e01602bd78272b77f56d 100644 (file)
@@ -22,6 +22,7 @@ if sys.platform == 'linux' or sys.platform == 'linux2':
     targets = [
         'i686-unknown-linux-gnu',
         'x86_64-unknown-linux-gnu',
+        'x86_64-unknown-linux-musl',
         'arm-unknown-linux-gnueabi',
         'arm-unknown-linux-gnueabihf',
         'armv7-unknown-linux-gnueabihf',